﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Baosight.Platform.Core.UI.Controls;

namespace Baosight.ZNH.ZMCommon
{
    public partial class EFCustomViewContainerPanel : ContentControl, IViewContainer
    {
        public event EventHandler CustomViewContentChanged;
        public EFCustomViewContainerPanel()
        {
            InitializeComponent();
            this.SizeChanged+=new SizeChangedEventHandler(EFCustomViewContainerPanel_SizeChanged);
        }

        private void EFCustomViewContainerPanel_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            if (CustomViewContentChanged != null)
            {
                this.CustomViewContentChanged.Invoke(this, null);
            }
        }
    }
}
